﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Admin_QueryMySelfQuestion : PX.ShowLayer.QueryView
{
	private PX.Question.QueryForm clsQueryForm;
	private PX.Asker.Component clsAskerComp = new PX.Asker.Component();
	private int nUserID = 0;
	private int nAskerID = 0;

	public Admin_QueryMySelfQuestion()
		: base("pBiggest")
	{
		
	}

	protected override void OnInit(EventArgs e)
	{
		
		clsQueryForm = new PX.Question.QueryForm(Page);
		clsForm = clsQueryForm;
		base.OnInit(e);
	}

	protected void Page_Load(object sender, EventArgs e)
	{
		PX.Asker.Entity clsAskerEntity = new PX.Asker.Entity();

		nUserID = Convert.ToInt32(Session["LoginUserID"]);
				
		clsAskerEntity = clsAskerComp.Query(nUserID);
		nAskerID = clsAskerEntity.ID;
		clsQueryForm.nAskerID = nAskerID;
	}

	protected override void ControlLayout()
	{
		clsQueryForm.QuestionHead(pSecondDiv);

		base.ControlLayout();
	}
}
